<template>
    <main>
        <p>请注意!您正在注销您的管理员账号,请输入您的密码并且在确认框里输入"YES"完成用户注销</p>
        <el-input v-model="passWord" label="当前密码" placeholder="请输入当前密码"></el-input>
        <br><br>
        <el-input v-model="yes" label="确认框"  placeholder="请输入'YES'"></el-input>
        <br><br>
        <el-button @click="submit()">提交</el-button>
    </main>

</template>

<script>
    import axios from 'axios'

    export default {
        name: "LogoutUser",
        data(){
            return{
                passWord:'',
                yes:''
            }

        },
        methods:{
            submit(){
                if(this.yes!='yes'){
                    console.log("确认信息填写错误")
                }else{
                    axios.post('/pwdChange',{
                        passWord:this.passWord
                    }).then(function (response) {

                    }).error(function (error) {

                    })
                }
            }
        }

    }
</script>

<style scoped>
    main{
        margin: 100px auto;
        width: 430px;
        height: 700px;
        line-height: 30px;
        text-align: left;
    }
    p{
        line-height: 30px;
        color: #ff6644;
        font-size: 30px;
        font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
    }
</style>